module.exports = [
  // 资源分类数据
  {
    url: "/vue-admin-template/resource/sort",
    type: "get",
    response: (_) => {
      return {
        code: 20000,
        data: {
          sort_list: [
            {
              sort_id: 1,
              sort_name: "计算机类",
              sort_desc: "，计算机类分类十分广泛，涵盖了多个学科、领域和技术。随着科技的不断发展，计算机类的分类也将不断扩展和深化。如需更详细的信息，建议查阅相关领域的专业书籍或咨询相关领域的专家。"
            },
            {
              sort_id: 2,
              sort_name: "计算机类",
              sort_desc: "，计算机类分类十分广泛，涵盖了多个学科、领域和技术。随着科技的不断发展，计算机类的分类也将不断扩展和深化。如需更详细的信息，建议查阅相关领域的专业书籍或咨询相关领域的专家。"
            },
            {
              sort_id: 3,
              sort_name: "计算机类",
              sort_desc: "，计算机类分类十分广泛，涵盖了多个学科、领域和技术。随着科技的不断发展，计算机类的分类也将不断扩展和深化。如需更详细的信息，建议查阅相关领域的专业书籍或咨询相关领域的专家。"
            },
            {
              sort_id: 5,
              sort_name: "计算机类",
              sort_desc: "，计算机类分类十分广泛，涵盖了多个学科、领域和技术。随着科技的不断发展，计算机类的分类也将不断扩展和深化。如需更详细的信息，建议查阅相关领域的专业书籍或咨询相关领域的专家。"
            },
            {
              sort_id: 4,
              sort_name: "计算机类",
              sort_desc: "，计算机类分类十分广泛，涵盖了多个学科、领域和技术。随着科技的不断发展，计算机类的分类也将不断扩展和深化。如需更详细的信息，建议查阅相关领域的专业书籍或咨询相关领域的专家。"
            },
            {
              sort_id: 6,
              sort_name: "计算机类",
              sort_desc: "，计算机类分类十分广泛，涵盖了多个学科、领域和技术。随着科技的不断发展，计算机类的分类也将不断扩展和深化。如需更详细的信息，建议查阅相关领域的专业书籍或咨询相关领域的专家。"
            },
            {
              sort_id: 7,
              sort_name: "计算机类",
              sort_desc: "，计算机类分类十分广泛，涵盖了多个学科、领域和技术。随着科技的不断发展，计算机类的分类也将不断扩展和深化。如需更详细的信息，建议查阅相关领域的专业书籍或咨询相关领域的专家。"
            },
          ],
        },
      };
    },
  },
  //   资源列表数据
  {
    url: "/vue-admin-template/resource/list",
    type: "post",
    response: (_) => {
      return {
        code: 20000,
        data: {
          list: [
            {
              sort_id: 1,
              sort_name: "计算机类",
              resource_id: 1,
              practitioner: "litao",
              resource_name: "流程梳理",
              upload_time: "2024-03-01",
              end_time: "2024-03-20",
              review_status: 1,
            },
            {
              sort_id: 2,
              sort_name: "计算机类",
              resource_id: 2,
              practitioner: "litao",
              resource_name: "流程梳理",
              upload_time: "2024-03-01",
              end_time: "2024-03-20",
              review_status: 1,
            },
            {
              sort_id: 3,
              sort_name: "计算机类",
              resource_id: 3,
              practitioner: "litao",
              resource_name: "流程梳理",
              upload_time: "2024-03-01",
              end_time: "2024-03-20",
              review_status: 1,
            },
            {
              sort_id: 5,
              sort_name: "计算机类",
              resource_id: 4,
              practitioner: "litao",
              resource_name: "流程梳理",
              upload_time: "2024-03-01",
              end_time: "2024-03-20",
              publish_status: 1,
              review_status: 1,
            },
            {
              sort_id: 4,
              practitioner: "litao",
              sort_name: "计算机类",
              resource_id: 5,
              resource_name: "流程梳理",
              upload_time: "2024-03-01",
              end_time: "2024-03-20",
              review_status: 1,
            },
            {
              sort_id: 6,
              practitioner: "litao",
              sort_name: "计算机类",
              resource_id: 6,
              resource_name: "流程梳理",
              upload_time: "2024-03-01",
              end_time: "2024-03-20",
              review_status: 1,
            },
            {
              sort_id: 7,
              practitioner: "litao",
              sort_name: "计算机类",
              resource_id: 7,
              resource_name: "流程梳理",
              upload_time: "2024-03-01",
              end_time: "2024-03-20",
              review_status: 1,
            },
          ],
        },
      };
    },
  },
  // 单个删除资源
  {
    url: "/vue-admin-template/resource/delete",
    type: "post",
    response: (config) => {
      const { token } = config.query;
      const info = users[token];

      // mock error
      if (!info) {
        return {
          code: 50008,
          message: "Login failed, unable to get user details.",
        };
      }

      return {
        code: 20000,
        data: info,
      };
    },
  },
  // 删除多个资源
  {
    url: "/vue-admin-template/resource/mul_delete",
    type: "post",
    response: (config) => {
      const { token } = config.query;
      const info = users[token];

      // mock error
      if (!info) {
        return {
          code: 50008,
          message: "Login failed, unable to get user details.",
        };
      }

      return {
        code: 20000,
        data: info,
      };
    },
  },
  // 添加资源信息
  {
    url: "/vue-admin-template/resource/add",
    type: "post",
    response: (config) => {
      const { token } = config.query;
      const info = users[token];

      // mock error
      if (!info) {
        return {
          code: 50008,
          message: "Login failed, unable to get user details.",
        };
      }

      return {
        code: 20000,
        data: info,
      };
    },
  },
   // 添加资源分类
   {
    url: "/vue-admin-template/resource/add_sort",
    type: "post",
    response: (config) => {
      const { token } = config.query;
      const info = users[token];

      // mock error
      if (!info) {
        return {
          code: 50008,
          message: "Login failed, unable to get user details.",
        };
      }

      return {
        code: 20000,
        data: info,
      };
    },
  },
];
